{php}$auth = app()->rbac->check('user/edit');{/php}
<table class="layui-table text-center" lay-size="sm">
    <thead>
        <tr>
            <th style="width: 64px">id</th>
            <th>UUID</th>
            <th style="width: 150px">昵称</th>
            <th style="width:120px">手机号</th>
            <th>头像</th>
            <th>注册时间</th>
            <th>状态</th>
            {eq name="auth" value="1"}
                <th>操作</th>
            {/eq}
        </tr>
    </thead>
    <tbody>
        {volist name="list" id="vo"}
            <tr>
                <td>{$vo.id}</td>
                <td>{$vo.uuid}</td>
                <td>
                    {$vo.nickname}
                </td>
                <td>{$vo.mobile}</td>
                <td>
                    {notempty name="vo.face"}<img src="" alt="" style="width: 32px;max-height: 32px;border-radius: 16px;">{/notempty}
                </td>
                <td>{$vo.register_time|date="Y-m-d H:i:s"}</td>
                <td>
                    <div class="text-center">
                        <a href="{:url('setStatus',['id'=>$vo['id'],'status'=>abs(1-$vo['status'])])}" class="ajax-get" msg="0"><span class="{$vo.status?'text-yellow':'text-muted'}"><i class="fa fa-circle"></i> {$vo.status?'启用':'禁用'}</span></a>
                    </div>
                </td>
                {eq name="auth" value="1"}
                    <td>
                        <a class="layui-btn layui-btn-xs layui-btn-normal ajax-form" href="{:url('edit',['id'=>$vo['id']])}" title="编辑用户">编辑</a>
                    </td>
                {/eq}
            </tr>
        {/volist}
    </tbody>
</table>
<div class="page">
    {$page|raw}
</div>